
/**
 * Copyright (c) 2006
 *      OpenAVS Developers. All Rights Reserved.
 *
 * Copyright (c) 2005-2006
 *      NSCC. All Rights Reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software Foundation,
 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */

#ifndef _PRED_H_
#define _PRED_H_

#include "define.h"

AVS_HRESULT IntraPredLuma(
		MBINFO * pMbInfo, 
		const AVS_BYTE * pbCurrY, 
		AVS_DWORD dwMbIndex, 
		AVS_DWORD dwImgWidth, AVS_DWORD dwImgHeight, 
		AVS_DWORD dwBlockNo, AVS_BYTE * pPred, 
		AVS_DWORD dwImgX, AVS_DWORD dwImgY);
AVS_HRESULT IntraPredChroma(
		MBINFO * pMbInfo, 
		const AVS_BYTE * pbCurrUV, 
		AVS_DWORD dwMbIndex, 
		AVS_DWORD dwMbWidth, AVS_DWORD dwMbHeight, 
		AVS_BYTE * pPred, 
		AVS_DWORD dwUVX, AVS_DWORD dwUVY);

AVS_HRESULT InterPredLumaP(
		MBINFO * pMbInfo, 
		AVS_INT dwMbIndex, 
		const VIDEODATA ** ppRefFrame, 
		AVS_INT dwMbWidth, AVS_INT dwMbHeight, 
		AVS_INT dwCurrDistanceIndex, 
		BWREFINFO * pBwRefInfo, 
		AVS_BYTE * pPred);
AVS_INT InterPredChormaP(
		MBINFO * pMbInfo, 
		AVS_INT dwMbIndex, 
		const VIDEODATA ** ppRefFrame, 
		AVS_INT dwMbWidth, AVS_INT dwMbHeight, 
		AVS_BYTE * pPred);

AVS_HRESULT InterPredLumaB(
		MBINFO * pMbInfo, 
		AVS_INT dwMbIndex, 
		const VIDEODATA ** ppRefFrame, 
		AVS_DWORD dwRefNum, 
		AVS_INT dwMbWidth, AVS_INT dwMbHeight, 
		AVS_INT dwCurrDistanceIndex, 
		AVS_BOOL bPictureStructure, 
		const BWREFINFO * pBwRefInfo, 
		AVS_BYTE * pPred);

AVS_HRESULT InterPredChormaB(
		MBINFO* pMbInfo, 
		AVS_INT dwMbIndex, 
		const VIDEODATA ** ppRefFrame, 
		AVS_DWORD dwRefNum, 
		AVS_INT dwMbWidth, AVS_INT dwMbHeight, 
		BWREFINFO * pBwRefInfo, 
		AVS_BYTE * pPred);

#endif
